<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./index.css">
  <style>
    .box {
      width: 200px;
      height: 200px;
      background-color: aqua;
    }
  </style>
</head>

<body>
  <div class="box">
    首页
  </div>
  <div class="box2">
    内容
  </div>
  <div class="box3">
    尾部
  </div>
  <script>
const box =  document.querySelector('box')
box.addEventListener('click',function(){
    console.log('点击了')
})
  </script>
</body>

</html>